package com.oop7.OldDriver;

public class Tractor {

	private double weight;
	private int volume;

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public int getVolume() {
		return volume;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}

	public void start() {
		System.out.println("拖拉机启动");
	}

	public void acceleration() {
		System.out.println("拖拉机加速");
	}

	public Tractor(double weight, int volume) {
		setWeight(weight);
		setVolume(volume);
	}

}
